package cn.yutong.framework.constant;

public class RetConstant {
    /* ajax 请求 成功 */
    public static final int AJAX_SUCCESS = 200;
    /* ajax 请求失败*/
    public static final int AJAX_ERROR = -1;

    /* 请求超时 */
    public static final int SERVER_TIMEOUT = -101;
    /*明确的服务端错误*/
    public final static int SERVER_ERROR_CODE = -500;
    /**
     * 未知
     */
    public static final int UNKNOWN_RET = -999;

    /**
     * 认证失败
     */
    public static final int NO_AUTH = -800;

    /**
     * 认证失败
     */
    public static final int ERROR_AUTHENTICATION = -801;
    /**
     * 授权失败
     */
    public static final int ERROR_AUTHORIZATION = -802;


    /**
     * 当前用户角色鉴权失败，没有相关角色
     */
    public static final int NO_SUBJECT_ROLE = -803;
    /**
     * 当前用户角色鉴权失败，没有相应权限
     */
    public static final int NO_SUBJECT_PERMISSION = -804;

    /**
     * 验证码验证失败
     */
    public static final int CAPTCHA_ERROR = -811;
    /**
     * 用户不存在
     */
    public static final int USER_NOT_EXIST = -812;
    /**
     * 密码不匹配错误
     */
    public static final int PASSWORD_NOT_MATCHER = -813;
    /**
     * 密码次数、登录次数限制
     */
    public static final int PASSWORD_RETRY_LIMIT = -814;
    /**
     * 用户锁定
     */
    public static final int LOCKER_USER = -815;
    /**
     * 角色锁定
     */
    public static final int LOCKED_ROLE = -816;

}
